﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="VendorProductsUI.aspx.cs" Inherits="RBOSS.WebUI.VendorProductsUI" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView runat="server" DataKeyNames="ProductId" ID="gvProductList" AutoGenerateColumns="False" CellPadding="4" ForeColor="Black" GridLines="Vertical" Width="596px" AllowPaging="True" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" OnPageIndexChanging="gvProductList_PageIndexChanging">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="ProductName" HeaderText="Product Name" >
            <ItemStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="UnitPrice" HeaderText="Unit Price" />
            <asp:BoundField DataField="Quantity" HeaderText="Quantity" />
            <asp:CheckBoxField DataField="IsProductActive" HeaderText="Available" />
               <asp:ImageField DataAlternateTextField="Image" DataImageUrlField="Image" HeaderText="Image"  ReadOnly="True">
                <ControlStyle Height="50px" />
                <ItemStyle Height="30px" />
            </asp:ImageField>
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='ProductUI.aspx?id=<%# Eval("ProductId") %>'>Edit</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>

        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />

    </asp:GridView>
    <br />
    <br />
    <table>
        <tr>
            <td>
                <asp:Button ID="btnAddProduct" runat="server" Text="Add Product" OnClick="btnAddProduct_Click" /></td>
        </tr>
    </table>
    </asp:Content>
